package www.lagou.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author sjp
 * @date 2021/5/8 14:32
 * @description
 */
public class Phone implements Serializable {
    private static final long serialVersionUID = -2658633338684387989L;
    private int id;

    /**
     * 手机名称
     */
    private String pname;

    /**
     * 手机单价
     */
    private double price;

    /**
     * 生产日期
     */
    private Date prodate;

    /**
     * 颜色
     */
    private String color;

    public Phone() {
    }

    public Phone(int id, String pname, double price, Date prodate, String color) {
        this.id = id;
        this.pname = pname;
        this.price = price;
        this.prodate = prodate;
        this.color = color;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getProdate() {
        return prodate;
    }

    public void setProdate(Date prodate) {
        this.prodate = prodate;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "id：" + id +
                ", 名称：" + pname +
                ", 单价：" + price +
                ", 生产日期：" + prodate +
                ", 颜色：" + color;
    }
}
